package Example;
class Animal5{
    String name = "牧羊犬";
    void shout{
        System.out.println("动物发出叫声");
    }
}
class Dog5 extends Animal{
    public void  shout(){
        super.shout();
        System.out.println("汪汪汪……");
    }
    public void prinName(){
        System.out.println("名字："+super.name);
    }
}
public class si5 {
    public static void main(String[] args) {
        Dog5 dog = new Dog();
        dog.shout();
        dog.prinName();
    }
}
